import java.io.Serializable;

// 电影类
public class Movie implements Serializable {
    private String movieId;
    private String title;
    private String director;
    private String actors;
    private String description;
    private int duration; // 分钟
    private double rating; // 0-10分

    public Movie(String movieId, String title, String director, String actors, String description, int duration, double rating) {
        this.movieId = movieId;
        this.title = title;
        this.director = director;
        this.actors = actors;
        this.description = description;
        this.duration = duration;
        this.rating = rating;
    }

    // Getters
    public String getMovieId() { return movieId; }
    public String getTitle() { return title; }
    public String getDirector() { return director; }
    public String getActors() { return actors; }
    public String getDescription() { return description; }
    public int getDuration() { return duration; }
    public double getRating() { return rating; }

    // Setters
    public void setTitle(String title) { this.title = title; }
    public void setDirector(String director) { this.director = director; }
    public void setActors(String actors) { this.actors = actors; }
    public void setDescription(String description) { this.description = description; }
    public void setDuration(int duration) { this.duration = duration; }
    public void setRating(double rating) { this.rating = rating; }
}